package j04daimakuai;

public class J1 {
    public static void main(String[] args) {
        int a = 6;
        {
            System.out.println(a);

            int b = 4;
            System.out.println(b);

//            int a = 99;

            {

            }
        }
//        System.out.println(b);

        switch (1){
            case 1:
                {
                    int a1 = 7;
                }
                break;
            case 2:
                {
                    int a1 = 7;
                }
                break;
        }
    }
}

class Cat{

    int age;
    //* 意义不大
    {
        System.out.println("==cat初始化代码块1=");
    }
    {
        System.out.println("==cat初始化代码块2=");
    }

    public Cat() {
        System.out.println("==无参cat构造==");
    }
    public Cat(int a) {
        System.out.println("==a参cat构造==");
    }
}

class CatTest{
    public static void main(String[] args) {
//        new Cat();
        new Cat(2);
    }
}
